//
//  Primer_BlockOperation_ViewController.swift
//  APSwift
//
//  Created by jianbo.pei on 2022/10/27.
//

import UIKit

class Primer_BlockOperation_ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        test1()
    }

    private func test1() {
        let op = BlockOperation {
            /// "当前线程 --- <_NSMainThread: 0x600003c200c0>{number = 1, name = main}"
            debugPrint("当前线程 --- \(Thread.current)")
        }
        op.start()
    }
}
